package Model.SignModel;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
public class Sign {
    private Integer id;
    private Integer lr_id;
    private Integer hg_id;
    private String lr_name;
    private String hg_name;
    private Integer state;
    private String organization_id;
    private String organization_name;
    private String fwaddress;

    @DateTimeFormat(pattern = "yyyy-MM-dd\'T\'HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd\'T\'HH:mm:ss", timezone = "GMT+8")
    private Date f_sign;

    @DateTimeFormat(pattern = "yyyy-MM-dd\'T\'HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd\'T\'HH:mm:ss", timezone = "GMT+8")
    private Date t_sign;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLr_id() {
        return lr_id;
    }

    public void setLr_id(Integer lr_id) {
        this.lr_id = lr_id;
    }

    public Integer getHg_id() {
        return hg_id;
    }

    public void setHg_id(Integer hg_id) {
        this.hg_id = hg_id;
    }

    public String getLr_name() {
        return lr_name;
    }

    public void setLr_name(String lr_name) {
        this.lr_name = lr_name;
    }

    public String getHg_name() {
        return hg_name;
    }

    public void setHg_name(String hg_name) {
        this.hg_name = hg_name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getOrganization_id() {
        return organization_id;
    }

    public void setOrganization_id(String organization_id) {
        this.organization_id = organization_id;
    }

    public String getOrganization_name() {
        return organization_name;
    }

    public void setOrganization_name(String organization_name) {
        this.organization_name = organization_name;
    }

    public Date getF_sign() {
        return f_sign;
    }

    public void setF_sign(Date f_sign) {
        this.f_sign = f_sign;
    }

    public Date getT_sign() {
        return t_sign;
    }

    public void setT_sign(Date t_sign) {
        this.t_sign = t_sign;
    }

    public String getFwaddress() {
        return fwaddress;
    }

    public void setFwaddress(String fwaddress) {
        this.fwaddress = fwaddress;
    }

    @Override
    public String toString() {
        return "Sign{" +
                "id=" + id +
                ", lr_id=" + lr_id +
                ", hg_id=" + hg_id +
                ", lr_name='" + lr_name + '\'' +
                ", hg_name='" + hg_name + '\'' +
                ", state=" + state +
                ", organization_id='" + organization_id + '\'' +
                ", organization_name='" + organization_name + '\'' +
                ", fwaddress='" + fwaddress + '\'' +
                ", f_sign=" + f_sign +
                ", t_sign=" + t_sign +
                '}';
    }
}
